<?php include('config.php')?>
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<?php
if($_POST['house_tanka_no']!=0 and $_POST['house_tanka_no']!=''){
?>

			<table border="0" width="100%" id="table5" cellpadding="0" bgcolor="#FDF9EE">
				<tr>
					<td width="116" align="center" bgcolor="#F7E6B7"></td>
					<td width="70" align="center" bgcolor="#F7E6B7">
					<font face="Verdana" style="font-size: 8.5pt" color="#990000">Location</font></td>
					<td width="70" align="center" bgcolor="#F7E6B7">
					<font face="Verdana" style="font-size: 8.5pt" color="#990000">Longitude</font></td>
				  <td width="70" align="center" bgcolor="#F7E6B7">
				  <font face="Verdana" style="font-size: 8.5pt" color="#990000">Latitude</font></td>
					<td width="133" align="center" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#990000">
					Operational Status</font></td>
					<td width="141" align="center" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#990000">					
					Method of Filling Water</font></td>
					<td width="150" align="center" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#990000">					
					Are Rain Water Collected</font></td>
					<td width="148" align="center" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#990000">					
					How Many Months Water Retained</font></td>
					<td width="77" align="center" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#990000">
					Approximate Capacity(cu.m)</font></td>
				</tr>
				<?php
				$no=$_POST['house_tanka_no'];
				if($no >0) {
				for($i=1; $i<=$no; $i++)
				{
				?>
				<tr>
				<td width="116">
					<input type="text" name="htanka_id<?php echo $i;?>" id="htanka_id<?php echo $i;?>" size="18" class="txt" value="House Hold Tanka<?php echo $i;?>" readonly /></td>
					<td width="70" align="center">
			<input type="text" name="htanka_location<?php echo $i;?>" id="htanka_location<?php echo $i;?>" size="20" class="txt5"></td>
		<td width="70" align="center">
			<input type="text" name="htanka_longitude<?php echo $i;?>" id="htanka_longitude<?php echo $i;?>" size="20" class="txt5" onblur="float1(this,67,80)"></td>
		<td width="70" align="center">
			 <input type="text" name="htanka_latitude<?php echo $i;?>" id="htanka_latitude<?php echo $i;?>" size="20" class="txt5" onblur="float1(this,20,32)"></td>
					<td width="133" align="center">
					<select size="1" name="htanka_op_status<?php echo $i;?>" id="htanka_op_status<?php echo $i;?>" class="txt5" >
                      <option selected value="0">Status</option>
                      <?php 
						foreach($op_status as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
                  </select></td>
					<td width="141" align="center">
						<select size="1" name="htanka_method<?php echo $i;?>" id="htanka_method<?php echo $i;?>" class="txt5" >
                     	<option selected value="0">Method</option>
                      <?php 
						foreach($method as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
                  </select>					</td>
					<td width="150" align="center">
						<font style="font-size: 9pt" face="Verdana" color="#000000">
						<input type="radio" name="htanka_rain_water<?php echo $i;?>" id="htanka_rain_water<?php echo $i;?>" value="yes">Yes &nbsp;
				  <input type="radio" name="htanka_rain_water<?php echo $i;?>" id="htanka_rain_water<?php echo $i;?>" value="no" checked="checked">No&nbsp;					  </font>					</td>
					<td width="148" align="center">
						<select size="1" name="htanka_month<?php echo $i;?>" id="htanka_month<?php echo $i;?>" class="txt5" >
                     	<option selected value="0">Month</option>
                      <?php 
						foreach($months as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
						?>
               	  </select></td>
					<td width="77" align="center">
					<input type="text" name="htanka_approx_cap<?php echo $i;?>" id="htanka_approx_cap<?php echo $i;?>" size="20" class="txt5" onKeyUp="float(this)">
				  </td>
				</tr>
				<?php 
				} }
				?>
				<input type="hidden" name="counthtanka" id="counthtanka" value="<?php echo $no;?>"/>		
</table>
<?php }?>
			
